home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMXMLDocument.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  157 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMXMLDocument.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMXMLDocument_h__
  6. #define __gen_nsIDOMXMLDocument_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMDocument_h__
  10. #include "nsIDOMDocument.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIXPointerResult; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIDOMXMLDocument */
  21. #define NS_IDOMXMLDOCUMENT_IID_STR "8816d003-e7c8-4065-8827-829b8d07b6e0"
  22.  
  23. #define NS_IDOMXMLDOCUMENT_IID \
  24.   {0x8816d003, 0xe7c8, 0x4065, \
  25.     { 0x88, 0x27, 0x82, 0x9b, 0x8d, 0x07, 0xb6, 0xe0 }}
  26.  
  27. class NS_NO_VTABLE nsIDOMXMLDocument : public nsIDOMDocument {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMXMLDOCUMENT_IID)
  31.  
  32.   /**
  33.    * Whether to load synchronously or asynchronously.
  34.    * The default is async==true.
  35.    */
  36.   /* attribute boolean async; */
  37.   NS_IMETHOD GetAsync(PRBool *aAsync) = 0;
  38.   NS_IMETHOD SetAsync(PRBool aAsync) = 0;
  39.  
  40.   /**
  41.    * Load an XML document.
  42.    *
  43.    * @param  url URL to an XML document.
  44.    * @return     True if load successfull.
  45.    */
  46.   /* boolean load (in DOMString url); */
  47.   NS_IMETHOD Load(const nsAString & url, PRBool *_retval) = 0;
  48.  
  49.   /**
  50.   * Evaluate FIXptr expression. FIXptr is a W3C NOTE, see
  51.   *
  52.   * http://lists.w3.org/Archives/Public/www-xml-linking-comments/2001AprJun/att-0074/01-NOTE-FIXptr-20010425.htm
  53.   *
  54.   * @param  expression FIXptr string.
  55.   * @return            The range object that results from evaluation
  56.   */
  57.   /* nsIDOMRange evaluateFIXptr (in DOMString expression); */
  58.   NS_IMETHOD EvaluateFIXptr(const nsAString & expression, nsIDOMRange **_retval) = 0;
  59.  
  60.   /**
  61.   * Evaluate XPointer expression.
  62.   */
  63.   /* nsIXPointerResult evaluateXPointer (in DOMString expression); */
  64.   NS_IMETHOD EvaluateXPointer(const nsAString & expression, nsIXPointerResult **_retval) = 0;
  65.  
  66. };
  67.  
  68. /* Use this macro when declaring classes that implement this interface. */
  69. #define NS_DECL_NSIDOMXMLDOCUMENT \
  70.   NS_IMETHOD GetAsync(PRBool *aAsync); \
  71.   NS_IMETHOD SetAsync(PRBool aAsync); \
  72.   NS_IMETHOD Load(const nsAString & url, PRBool *_retval); \
  73.   NS_IMETHOD EvaluateFIXptr(const nsAString & expression, nsIDOMRange **_retval); \
  74.   NS_IMETHOD EvaluateXPointer(const nsAString & expression, nsIXPointerResult **_retval); 
  75.  
  76. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  77. #define NS_FORWARD_NSIDOMXMLDOCUMENT(_to) \
  78.   NS_IMETHOD GetAsync(PRBool *aAsync) { return _to GetAsync(aAsync); } \
  79.   NS_IMETHOD SetAsync(PRBool aAsync) { return _to SetAsync(aAsync); } \
  80.   NS_IMETHOD Load(const nsAString & url, PRBool *_retval) { return _to Load(url, _retval); } \
  81.   NS_IMETHOD EvaluateFIXptr(const nsAString & expression, nsIDOMRange **_retval) { return _to EvaluateFIXptr(expression, _retval); } \
  82.   NS_IMETHOD EvaluateXPointer(const nsAString & expression, nsIXPointerResult **_retval) { return _to EvaluateXPointer(expression, _retval); } 
  83.  
  84. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  85. #define NS_FORWARD_SAFE_NSIDOMXMLDOCUMENT(_to) \
  86.   NS_IMETHOD GetAsync(PRBool *aAsync) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsync(aAsync); } \
  87.   NS_IMETHOD SetAsync(PRBool aAsync) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsync(aAsync); } \
  88.   NS_IMETHOD Load(const nsAString & url, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Load(url, _retval); } \
  89.   NS_IMETHOD EvaluateFIXptr(const nsAString & expression, nsIDOMRange **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->EvaluateFIXptr(expression, _retval); } \
  90.   NS_IMETHOD EvaluateXPointer(const nsAString & expression, nsIXPointerResult **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->EvaluateXPointer(expression, _retval); } 
  91.  
  92. #if 0
  93. /* Use the code below as a template for the implementation class for this interface. */
  94.  
  95. /* Header file */
  96. class nsDOMXMLDocument : public nsIDOMXMLDocument
  97. {
  98. public:
  99.   NS_DECL_ISUPPORTS
  100.   NS_DECL_NSIDOMXMLDOCUMENT
  101.  
  102.   nsDOMXMLDocument();
  103.  
  104. private:
  105.   ~nsDOMXMLDocument();
  106.  
  107. protected:
  108.   /* additional members */
  109. };
  110.  
  111. /* Implementation file */
  112. NS_IMPL_ISUPPORTS1(nsDOMXMLDocument, nsIDOMXMLDocument)
  113.  
  114. nsDOMXMLDocument::nsDOMXMLDocument()
  115. {
  116.   /* member initializers and constructor code */
  117. }
  118.  
  119. nsDOMXMLDocument::~nsDOMXMLDocument()
  120. {
  121.   /* destructor code */
  122. }
  123.  
  124. /* attribute boolean async; */
  125. NS_IMETHODIMP nsDOMXMLDocument::GetAsync(PRBool *aAsync)
  126. {
  127.     return NS_ERROR_NOT_IMPLEMENTED;
  128. }
  129. NS_IMETHODIMP nsDOMXMLDocument::SetAsync(PRBool aAsync)
  130. {
  131.     return NS_ERROR_NOT_IMPLEMENTED;
  132. }
  133.  
  134. /* boolean load (in DOMString url); */
  135. NS_IMETHODIMP nsDOMXMLDocument::Load(const nsAString & url, PRBool *_retval)
  136. {
  137.     return NS_ERROR_NOT_IMPLEMENTED;
  138. }
  139.  
  140. /* nsIDOMRange evaluateFIXptr (in DOMString expression); */
  141. NS_IMETHODIMP nsDOMXMLDocument::EvaluateFIXptr(const nsAString & expression, nsIDOMRange **_retval)
  142. {
  143.     return NS_ERROR_NOT_IMPLEMENTED;
  144. }
  145.  
  146. /* nsIXPointerResult evaluateXPointer (in DOMString expression); */
  147. NS_IMETHODIMP nsDOMXMLDocument::EvaluateXPointer(const nsAString & expression, nsIXPointerResult **_retval)
  148. {
  149.     return NS_ERROR_NOT_IMPLEMENTED;
  150. }
  151.  
  152. /* End of implementation class template. */
  153. #endif
  154.  
  155.  
  156. #endif /* __gen_nsIDOMXMLDocument_h__ */
  157.